\hypertarget{_config_8h}{\section{libemb/inc/\+Config.h 文件参考}
\label{_config_8h}\index{libemb/inc/\+Config.\+h@{libemb/inc/\+Config.\+h}}
}
{\ttfamily \#include \char`\"{}Base\+Type.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}libconfig.\+h++\char`\"{}}\\*
{\ttfamily \#include \char`\"{}Array.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}Mutex.\+h\char`\"{}}\\*
{\ttfamily \#include $<$iostream$>$}\\*
{\ttfamily \#include $<$vector$>$}\\*
\subsection*{类}
\begin{DoxyCompactItemize}
\item 
class \hyperlink{class_settings}{Settings}
\begin{DoxyCompactList}\small\item\em 配置项 \end{DoxyCompactList}\item 
class \hyperlink{class_config}{Config}
\begin{DoxyCompactList}\small\item\em 配置类 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{详细描述}
\hyperlink{class_config}{Config} Brief Introduce 配置文件的数据类型及格式(用大括号\{\}表示一组配置,用分号;隔开配置项) int = 10001; //整形值 double = 3.\+1415926; //浮点值 string = \char`\"{}\+Jim\char`\"{}; //字符串 int\+\_\+array = \mbox{[}1,-\/1,1,0\mbox{]}; //数组,用\mbox{[}\mbox{]}表示,元素之间用逗号隔开 double\+\_\+array = \mbox{[}1.\+01, 2.\+02, 3.\+03\mbox{]}; string\+\_\+array = \mbox{[}\char`\"{}one\char`\"{},\char`\"{}two\char`\"{},\char`\"{}three\char`\"{}\mbox{]}; list = ( //列表,用()包含,元素之间用逗号隔开 \{item=1;\}, //list\mbox{[}0\mbox{]},配置项之间用分号隔开 \{item=2;name=\char`\"{}\+Tom\char`\"{};\}, //list\mbox{[}1\mbox{]} ); group\+: //组配置,用\{\}包含 \{ string =\char`\"{}fergus\char`\"{}; //配置项之间用分号隔开 subgroup\+: \{ array=\mbox{[}1,2,3,4\mbox{]}; \} \} 整个文件是一个\+Setting,下面包含一个或多个\+Setting 每个\+Setting里可以包含若干子\+Setting和其他数据类型